package org.jsrml.core.base.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;


@QueryConfig(daoBeanId = "cityService")
@SuppressWarnings("serial")
public class CityQO extends BaseQO<String> {

	@QueryCondition(name = "province", type = QueryConditionType.FETCH_EAGER)
	private Boolean fetchProvince;

	@QueryCondition(name = "province", type = QueryConditionType.LEFT_JOIN)
	private ProvinceQO provinceQO;

	@QueryCondition(name = "name", type = QueryConditionType.LIKE_ANYWHERE)
	private String name;

	@QueryCondition(name = "bdCode")
	private String bdCode;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Boolean getFetchProvince() {
		return fetchProvince;
	}

	public void setFetchProvince(Boolean fetchProvince) {
		this.fetchProvince = fetchProvince;
	}

	public ProvinceQO getProvinceQO() {
		return provinceQO;
	}

	public void setProvinceQO(ProvinceQO provinceQO) {
		this.provinceQO = provinceQO;
	}

	public String getBdCode() {
		return bdCode;
	}

	public void setBdCode(String bdCode) {
		this.bdCode = bdCode;
	}

}
